<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
 <%@page import ="java.util.*" %>
 <%@page import ="java.text.DecimalFormat"%>
 <%@ page import="java.sql.*" %>
 <jsp:useBean id="db" class="ctm.javacode.dbBean"/>
<%@ page
	import="javax.xml.parsers.DocumentBuilderFactory,javax.xml.parsers.DocumentBuilder,
				 org.w3c.dom.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>中醫體質評量系統</title>
<script language="Javascript" type="text/javascript">
	function check() {	
		var work_obj = document.getElementsByName("work");
		var work_len = work_obj.length;
		var check = false;	
		
		for(var i=0;i<work_len;i++){
			if(work_obj[i].checked == true){
				check = true;
				break;
			}
		}
		if(!check){
			alert("請選擇工作量");
			return;
		}
		document.menuform.submit();
	}
</script>
<style type="text/css">
<!--
body {
	background-image: url(img/grass.jpg);
	background-position: center top;
	background-color: #FFFFFF;
	background-repeat: repeat;
}

body,td,th {
	color: #000000;
	font-size: 24px;
	font-family: Arial;
}

a:link {
	text-decoration: none;
	font-family: Arial;
	font-size: 20px;
	color: #FFFFFF;
}

a:visited {
	text-decoration: none;
	font-family: Arial;
	font-size: 20px;
	color: #FFFFFF;
}

a:hover {
	text-decoration: none;
	font-family: Arial;
	font-size: 20px;
	color: #000000;
}

.class2 a:link {
	text-decoration: none;
	font-family: "標楷體";
	font-size: 20px;
	color: #000000;
}

.class2 a:visited {
	text-decoration: none;
	font-family: "標楷體";
	font-size: 20px;
	color: #000000;
}

.class2 a:active {
	text-decoration: none;
	font-family: "標楷體";
	font-size: 20px;
	color: #0000FF;
}

.class2 a:hover {
	text-decoration: none;
	font-family: "標楷體";
	font-size: 20px;
	color: #0000FF;
}

.ind:link {
	color: #535353;
	text-decoration: none;
	font-family: "標楷體";
	font-size: 18px;
}

.ind:visited {
	color: #535353;
	text-decoration: none;
	font-family: "標楷體";
	font-size: 18px;
}

.ind:hover {
	color: #BB280F;
	text-decoration: none;
	font-family: "標楷體";
	font-size: 18px;
}

.off {
	display: none;
}

.on {
	display: block;
}

.HEAD_STYLE {
	font-weight: bold;
	color: #437A27;
	font-family: "標楷體";
	font-size: 30px;
}

.TEXT_STYLE {
	font-family: "標楷體";
	color: #000000;
	font-size: 24px;
}

.BOTTOM_STYLE {
	color: #FFFFFF;
	font-family: Arial;
	font-size: 20px;
}

.LEFT_BUTTON {
	font-family: "標楷體";
	font-size: 30px;
}

.button {
	border: 1px;
	padding-top: 4px;
	padding-right: 7px;
	padding-bottom: 4px;
	padding-left: 7px;
	background-color: #468129;
	color: #FFFFFF;
	font-size: 16px;
	border-color: #3C7023;
}

.style3 {
	color: #437A27;
	font-weight: bold;
}
-->
</style>
</head>

<body alink="#FF0000" vlink="#FF0000">

	<table width="100%" border="0">
		<tr>
			<td><p>&nbsp;</p></td>
		</tr>
		<tr>
			<td width="5%">&nbsp;</td>
			<td bgcolor="#FFFFFF">
				<table width="100%" border="0">
					<tr>
						<td background="img/herbal.jpg">
							<p>&nbsp;</p>
							<p>&nbsp;</p>
							<p>&nbsp;</p>
							<p>&nbsp;</p>
							<p>&nbsp;</p>
						</td>
					</tr>
					<tr>
						<td>
							<table bgcolor="#437A27" width="100%" border="0">
								<tr>
									<td>&nbsp;</td>
									<td width="20%" align="center"><a href="main.jsp"
										target="_parent">回到主選單</a></td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td>
							<table width="100%">
								<tr>
									<td valign="top">
										<table width="100%" border="0">
											<form name="menuform" action="UserSuggest.do" method="post">
												<tr>
													<td class="HEAD_STYLE" align="center">飲食建議</td>
												</tr>
												<tr>
													<td>
														<table width="90%" align="center" border="1">
															<tr>
																<td class="TEXT_STYLE">
																	<span class="TEXT_STYLE">&nbsp;&nbsp;活動因子</span> 
																	<table width="100%">
																		<tr>
																			<td class="TEXT_STYLE">																				
																				&nbsp; <input type="radio" name="work" value="little">輕度工作<br>																					
																				&nbsp;&nbsp;&nbsp;&nbsp;大部分從事靜態或坐著的工作。例如：家庭主婦、坐辦公室的上班族、售貨員<br>
																				&nbsp; <input type="radio" name="work" value="middle">中度工作<br>
																				&nbsp;&nbsp;&nbsp;&nbsp;從事機械操作、接待或家事等站立活動較多的工作。例如：褓母、護士、服務生<br>
																				&nbsp; <input type="radio" name="work" value="large">重度工作<br>
																				&nbsp;&nbsp;&nbsp;&nbsp;從事農耕、漁業、建築等的重度使用體力之工作。例如：運動員、搬家工<br>																				
																			</td>
																		</tr>
																	</table>
																</td>
															</tr>
														</table>
													</td>
												</tr>
												<tr>
													<center>
															<td>
																<p  align="center">															
																	<span>
																		<input type="button" value="送出" class="button" onClick="check()"  />
																		<input class="button" type="button" value="回到主選單" onClick="location='main.jsp'" />
																	</span>				
																</p>
															</td>																													
													</center>
												</tr>
											</form>
										</table>
									</td>
								</tr>
							</table>
						</td>
					</tr>
					<tr>
						<td><p>&nbsp;</p></td>
					</tr>
					<tr>
						<td bgcolor="#437A27">
							<div align="center" class="BOTTOM_STYLE">Copyright@ITRI and CCU_PLlab</div>
						</td>
					</tr>
				</table>
			</td>
			<td width="5%">&nbsp;</td>
		</tr>
	</table>
	<p>&nbsp;</p>
</body>
</html>